<template>
  <div class="approver_wrap">
    <div class="title">
      <i class="iconfont icon-chaosong"></i> <span>{{ props.name }}</span>
    </div>
    <div class="content">
      <span v-if="props.customAttr?.basicSetting?.rolesName">{{ props.customAttr?.basicSetting?.rolesName.join(',') }}</span>
      <span v-else>请选择抄送人</span>
    </div>
  </div>
</template>

<script setup lang="ts">
import { reactive, computed, ref, getCurrentInstance, onMounted, watch, onUnmounted, createVNode, toRaw } from 'vue';

const props = defineProps<{
  customAttr: any;
  type?: string;
  name: string;
  //submitCallBack: () => void,
}>();

//  const emit = defineEmits(['closeModal'])
// const closeModal  = ()=>{
//   emit('closeModal',false)
// }

const init = () => {
  // watch(searchValue, value => {
  // });
};

onMounted(() => {
  init();
});

onUnmounted(() => {});
</script>

<style lang="less" scoped>
.approver_wrap {
  margin: 10px;
  width: 220px;
  height: 80px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0px -1px 5px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-left: 6px solid #faad14;
  &:hover {
    border: 1px solid #005aea;
    border-left: 6px solid #faad14;
    box-shadow: 0px 0px 5px 3px rgba(0, 90, 234, 0.3);
  }

  .title {
    span {
      font-weight: 600;
    }
  }
  .content {
    margin-top: 10px;
  }
}

.lf-node-selected {
  .approver_wrap {
    border: 1px solid #005aea;
    border-left: 6px solid #faad14;
    box-shadow: 0px 0px 5px 3px rgba(0, 90, 234, 0.3);
  }
}
</style>
